fn main() {
    // 基本变量声明和使用
    let x = 10;
    let y = 20;
    println!("x is {}, y is {}", x, y);

    // 简单的条件判断
    if x < y {
        println!("x is less than y");
    } else {
        println!("x is greater than or equal to y");
    }

    // 循环示例
    println!("\nCounting from 1 to 5:");
    for i in 1..=5 {
        println!("Count: {}", i);
    }

    // 简单的函数调用
    let sum = add_numbers(x, y);
    println!("\nSum of {} and {} is: {}", x, y, sum);
}

// 定义一个简单的函数
fn add_numbers(a: i32, b: i32) -> i32 {
    a + b
}





